
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>加载动画</title>
    <link rel="stylesheet" href="css/loading.css">
</head>
<body>

<div class="loader">

    <div class="loading-text">
        Loading<span class="dot">.</span><span class="dot">.</span
    ><span class="dot">.</span>
    </div>
    <div class="loading-bar-background">
        <div class="loading-bar">
            <div class="white-bars-container">
                <div class="white-bar"></div>
                <div class="white-bar"></div>
                <div class="white-bar"></div>
                <div class="white-bar"></div>
                <div class="white-bar"></div>
                <div class="white-bar"></div>
                <div class="white-bar"></div>
                <div class="white-bar"></div>
                <div class="white-bar"></div>
                <div class="white-bar"></div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
let loader = document.querySelector(".loader");

// 使用JavaScript在2.5秒后重定向到TrainAdd.html页面
setTimeout(function() {
window.location.href = "/untitled_war/indexServlet"; // 重定向到首页页面
}, 2000);

</script>
</html>